package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.TravelDiscuss;
import cn.wolfcode.trip.base.domain.TravelTalk;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelDiscussMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TravelDiscuss travelDiscuss);

    TravelDiscuss selectByPrimaryKey(Long id);

    List<TravelDiscuss> selectAll();

    int updateByPrimaryKey(TravelDiscuss record);

    List<TravelDiscuss> queryList(@Param("travelId") Long travelId);

    List<TravelDiscuss> queryListByTargetId(@Param("targetId") Long targetId, @Param("type") int type);

    void changeType(int type);
}